<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>案例土豆网显示功能</title>

    <style>
        .box {
            margin: 100px auto;
            width: 400px;
            height: 300px;
            position: relative;
            background-color: aquamarine;
        }
        
        img {
            width: 100%;
            position: absolute;
            height: 100%;
        }
        
        .yc {
            /* 隐藏遮罩层 */
            display: none;
            position: absolute;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4) url(images/arr.png) no-repeat center;
        }
        
        .box:hover .yc {
            display: block;
        }
    </style>


</head>

<body>

    <div class="box">
        <img src="../img/8d83794c16afa254c3e1f520f9c453bf8e8b4672.jpg">
        <div class="yc">

        </div>

    </div>



</body>

</html>